package com.cyzy.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.cyzy.dto.FieldDto;
import com.cyzy.mapper.LandMapper;
import com.cyzy.pojo.Activity;
import com.cyzy.pojo.Field;
import com.cyzy.pojo.Plot;
import com.cyzy.pojo.PlotOrders;
import com.cyzy.service.LandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class LandServiceImpl extends ServiceImpl<LandMapper, FieldDto> implements LandService {
    @Autowired
    private LandMapper landMapper;

    @Override
    public List<FieldDto> selectPage(Page page, FieldDto field) {
        return landMapper.FieldList();
    }

    @Override
    public FieldDto selectById1(long field) {
        return landMapper.selectById1(field);
    }

    @Override
    public List<Plot> selectByOwnerId(long field) {

        return landMapper.selectByOwnerId(field);
    }

    @Override
    public List<Plot> selectAll(Plot plot) {
        return landMapper.selectAll(plot);
    }
}
